//
//  ReleaseDynamicReusableView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/12.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ReleaseDynamicReusableView.h"

@implementation ReleaseDynamicReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
//        self.backgroundColor = kRandomColor;
//        GLGWView *topView = [[GLGWView alloc] initWithInSuperView:self];
//        topView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
//        topView.backgroundColor = [UIColor redColor];
//
//        [topView mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.left.top.right.equalTo(self);
//            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(10)));
//        }];
    
        GLGWTextView *textV = [[GLGWTextView alloc] initWithFontType:SYSTEMFONT(14) colorType:kColor_Rule_Black inSuperView:self];
        textV.placeholder = @"分享您的经验与生活的点滴…";
        textV.placeholderAttributes = @{NSFontAttributeName:SYSTEMFONT(14), NSForegroundColorAttributeName:[UIColor colorWithHexString:@"#999999"]};
        [textV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(91)));
        }];
        self.textV = textV;
    }
    return self;
}

@end
